Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(op): type safety in computation of op tx metadata #10619

Merged
merged 31 commits into from
Sep 5, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Aug 29, 2024

Cleans up semantics from #10615 in a way that makes the logic understandable for non-original authors that aren't familiar with op data type intricacies.

  • Re-defines reth_optimism_rpc::OpTxMeta as OpReceiptFieldsBuilder, which builds op_alloy_rpc_types::OptimismTransactionReceiptFields

@emhane emhane added C-debt Refactor of code section that is hard to understand or maintain A-rpc Related to the RPC implementation A-op-reth Related to Optimism and op-reth labels Aug 29, 2024
Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would recommend to not make changes in the node core SDK API unless absolutely needed -- this breaks everyone integrating it and not obvious to me it's needed

@emhane
Copy link
Member Author

emhane commented Aug 29, 2024

it wasn't possible for me to make a unit test for it before @gakonst , it was too confusing

@emhane emhane requested a review from klkvr September 5, 2024 16:28
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@emhane emhane added this pull request to the merge queue Sep 5, 2024
Merged via the queue into main with commit 0c2b496 Sep 5, 2024
35 checks passed
@emhane emhane deleted the emhane/op-receipt-fields-builder branch September 5, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-reth Related to Optimism and op-reth A-rpc Related to the RPC implementation C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants